package prvi.wen.terp.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/common")
public class HelloController {
	
    
    //登录页面1  agreement
    @Value("${msg:Welcome!}")
    private String msg;

    /**
     * get a page
     * @return a page with name called return value
     */

    
    //登录页面
    @RequestMapping("/login")
    public String login(){
        return "loginfo";
    }
    
    //index页面
    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    //注册页面
    @RequestMapping("/register")
    public String register(){
        return "register";
    }
    
    //协议页面
    @RequestMapping("/agreement")
    public String agreement(){
        return "agreement";
    }
    




}
